<?php
require_once "Dell.php";
require_once "Huawei.php";
class Factory {
    /**
     * 工厂创建实例
     */
    public function createFactory ($type) {
        switch ($type) {
            case 'dell':
                $class = new Dell();
                break;
            case 'huawei':
                $class = new Huawei();
                break;
            default:
                $class = "";
                break;
        }
        return $class;
    }
}
